<?php
abstract class Model{
    private $atributos = array();
    
    public function __set($key, $value){
        $this->atributos[$key] = $value;
    }
    
    public function __get($key){
        return $this->atributos[$key];
    }
    
    public function clear(){
        $this->atributos = array();
    }
}